<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>百度权重查询-懒人工具- 懒人网站助手</title>
<meta name="keywords" content="百度权重查询，权重查询，百度查询，百度权重值">
<meta name="description" content="百度值是根据各方面因素，综合指定出的针对该网站在百度里的重要级别，该权重值与谷歌值是不同计算方式，所以该百度权重值仅是搜索引擎中的一个参考数据。">
<script>
function getdomain(url) {
	_url = url.toLowerCase(); 
    if (_url.indexOf("http://") >= 0) {
	    var _url = url.replace("http://", "");
	}
    if (_url.indexOf("/") >= 0) {
		var _domain_arr = _url.split("/");
		var _domain = _domain_arr[0];
	} else {
		var _domain = _url;
	}
	_domain = _domain.replace(/^\s+|\s+$/g,"");
	_domain = _domain.replace(" ", "");
    return _domain;
}

function smt_form() {
	var searchDomain = getdomain(document.getElementById('searchDomain').value);
	if (searchDomain) {
		location.href='/baidu/'+searchDomain;
	} else {
		alert('请输入要查询的域名！');
		document.getElementById('searchDomain').focus();
	}
	return false;
}


</script>
</head>
<body>
<div class="main">
<div class="filter">
	<a href="/">懒人工具首页</a><span>&gt;</span>百度权重查询
</div>
<div class="col">
	<dl class="clist">
		   <dt><strong>百度权重查询</strong></dt>
		      	<dd>
		      	<form action="" method="get" name="query_form" onsubmit="smt_form();return false;">
          请输入你要查询的地址：<input type="text" id="searchDomain"  class="inp" size="65" value="<s:property value='searchDomain'/>" />
          <input type="submit" value="查  询" class="sec"/>
          </form>
          <div class="ainfo">
			1.输入带"www"和不带"www"的结果是不一样的。因为二级域名带来的流量也能计算在内。<br />
		  </div>
		  <s:if test="searchDomain!=''">
        <s:property value="analysisResult" escape="false"/>
        <div class="boxlist">
           <table class="table">
            <tr class="tablehead"><s:property value="keywordInfo" escape="false"/></td></tr></table>
        </div>
        </s:if>
       <s:component template="errorNoFieldKey"/>
                </dd>
		</dl>
	</div>

</div>
</body>
</html>
